package com.russell.pms.webapp.bean;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.russell.pms.model.Property;

@XmlRootElement(name = "properties")
public class PropertyList {

    private int count;
    private List<Property> properties;

    public PropertyList() {
    }

    public PropertyList(List<Property> properties) {
        this.properties = properties;
        this.count = properties.size();
    }

    public int getCount() {
        return count;
    }

    @XmlElement(name = "property")
    public List<Property> getProperties() {
        return properties;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public void setProperties(List<Property> properties) {
        this.properties = properties;
    }

}
